import {Injectable} from '@angular/core';
import {HttpService} from '../../../core/http.service';
import {CommHttpService} from '../../../core/comm.http.service';
import {SERVERS_NAME} from '../../../config/config';
import {Observable} from 'rxjs';
import * as deleteProperty from 'core-js/fn/reflect/delete-property';

@Injectable()
export class TechAllService extends CommHttpService {
    protected preUrl = `${SERVERS_NAME.EVALUTE_SERVER}evalute/complex/`;

    constructor(protected http: HttpService) {
        super(http);
    }

    /**********接口部分**********/

     /**
     * 查询学年列表
     */
      year(): Observable<any> {
        return this.http.post({}, `${SERVERS_NAME.SECURITY_SERVER}sys/semester/list`);
      }

     /**
     * 获取学生评价分页
     * @param param：param
     */
      getPage(param: any): Observable<any> {
        return this.http.post(param, this.preUrl + `page`);
    }
     /**
     * 获取配置
     * @param param：param
     */
    getConfig(): Observable<any> {
        return this.http.post({}, this.preUrl + `getConfig`);
    }

     /**
     * 保存配置
     * @param param：param
     */
    save(param: any): Observable<any> {
        return this.http.post(param, this.preUrl + `saveConfig`);
    }

}
